package com.gqz.patrol.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gqz.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 电量采集信息表
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnPatrolTaskElectricityVo implements Serializable {


    /**
     * 主键
     **/
    @Excel(isExport = false)
    private String id;

    /**
     * 单位id
     **/
    @Excel(isExport = false)
    private String unitId;

    /**
     * 单位名称
     **/
    @Excel(name = "单位名称", width = 20)
    private String unitName;

    /**
     * 所属单据编号
     **/
    @Excel(isExport = false)
    private String taskNo;

    /**
     * 所属工单名称
     **/
    @Excel(name = "所属工单名称", width = 20)
    private String taskName;

    /**
     * 能源站点id
     **/
    @Excel(isExport = false)
    private String energySiteId;

    /**
     * 能源站点名称
     **/
    @Excel(name = "能源站点名称", width = 20)
    private String energySiteName;

    /**
     * 配电柜名称
     **/
    @Excel(name = "配电柜名称", width = 20)
    private String powerDistName;

    /**
     * 配电柜编码
     **/
    @Excel(isExport = false)
    private String powerDistNo;

    /**
     * 电表编号
     **/
    @Excel(isExport = false)
    private String electricityMeterNo;

    /**
     * 电表名称
     **/
    @Excel(name = "电表名称", width = 20)
    private String electricityMeterName;

    /**
     * 电量
     **/
    @Excel(name = "电量", width = 20)
    private String electricityNum;

    /**
     * 采集时间
     **/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "acqTime", format = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采集时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date acqTime;

    /**
     * 采集人
     **/
    @Excel(name = "采集人", width = 20)
    private String acqPerson;

    /**
     * 电表照片
     **/
    @Excel(isExport = false)
    private String electricityPic;

    /**
     * 创建人
     **/
    @Excel(isExport = false)
    private String creator;

    /**
     * 创建时间
     **/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
    @Excel(isExport = false)
    private Date createTime;

    /**
     * 是否删除
     **/
    @Excel(isExport = false)
    private String deleted;

    /**
     * 采集时间至
     **/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "acqTimeTo", format = "yyyy-MM-dd HH:mm:ss")
    @Excel(isExport = false)
    private Date acqTimeTo;

    /**
     * 巡视工单id
     **/
    private String taskId;

}
